package com.baizhi.dao.mongo;

import com.baizhi.domain.mongo.Comment;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface CommentDao extends MongoRepository<Comment, String> {

    // 命名规则查询，按照文章id查询所有评论
    List<Comment> findByAid(Integer id);
}
